<div style="overflow-y:auto;overflow-x:auto; width: 370px;" id="siteFormDiv">
        <form id="siteForm" action="sites.php?a=<?php $this->ifput($site, 'doEdit&id=' . $site['id'], 'doAdd')?>" method="post" enctype="multipart/form-data">
        <div class="box">
                <div style="display: block; width:90%;" id="adviceMsg" class="validation-advice"></div>
                <dl class="facerow">
                    <dt><?php $this->put('中文名称');?>:</dt>
                    <dd>
                        <input type="text" value="<?php $this->put($site['cname'])?>" name="cname" id="cname" class="text required" onchange="if(this.value!= '')$('adviceMsg').innerHTML='';"/>
                    </dd>
                </dl>
                <dl class="facerow">
                    <dt><?php $this->put('英文名称');?>:</dt>
                    <dd>
                        <input type="text" value="<?php $this->put($site['ename'])?>" name="ename" id="ename" class="text required" onchange="if(this.value!= '')$('adviceMsg').innerHTML='';"/>
                    </dd>
                </dl>
                <dl class="facerow">
                    <dt><?php $this->put('站点地址');?>:</dt>
                    <dd>
                        <input type="text" name="siteUrl" id="siteUrl" value="<?php $this->put($site['siteUrl'])?>" class="text required" onchange="if(this.value!= '')$('adviceMsg').innerHTML='';" />
                    </dd>
                    
                </dl>
                <?php if (count($projects) >= 2 || $isBoss) : ?>
                <dl class="facerow">
                    <dt><?php $this->put('所属项目');?>:</dt>
                    <dd>
                    	<select name="projectId" id="projectId" onchange="if(this.value!= '')$('adviceMsg').innerHTML='';">
                    		<?php $this->htmlOptions($projects, $site['projectId'])?>
                    	</select>
                    </dd>
                </dl>
                <?php endif;?>
				<dl class="facerow">
                    <dt><?php $this->put('淘宝分区');?>:</dt>
                    <dd>
                    	<select name="region" id="region" onchange="if(this.value!= '')$('adviceMsg').innerHTML='';">
                    		<?php $this->htmlOptions($checkRegion, $site['region'])?>
                    	</select>
                    </dd>
                </dl>
                <dl class="facerow">
                    <dt><?php $this->put('渠道分组');?>:</dt>
                    <dd>
                        <input type="test" name="tag" id="tag" value="<?php $this->put($site['tag'])?>" class="text required" />
                    </dd>
                </dl>
            <div class="buttonrow">
                <input type="hidden" name="formHash" value="<?php $this->put($formHash);?>" />
                <input type="button" class="submit" value="保存" onclick="checkSiteForm(true);"/>
                <input type="button" class="button" value="关闭" onclick="checkSiteForm(false);"/>
            </div>
        </div>
     </form>
</div>